﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using QuanLyDoanVien.Bussiness;
using QuanLyDoanVien.DataLayer;
using System.Data;

namespace QuanLyDoanVien.Controller
{
    class HocSinhViPhamCtrl
    {
        HocSinhViPhamData m_HocSinViPhamData = new HocSinhViPhamData();
        public List<HocSinhViPhamInfo> layDanhSachHocSinHViPham()
        {
            return m_HocSinViPhamData.layDanhSachHocSinhViPham();
        }

        public HocSinhViPhamInfo layHocSinhViPham(String maKyLuat)
        {
            return m_HocSinViPhamData.layHocSinhViPham(maKyLuat);
        }
        public HocSinhViPhamInfo layHocSinhViPham(String maKyLuat,String maHocSinh)
        {
            return m_HocSinViPhamData.layHocSinhViPham(maKyLuat,maHocSinh);
        }
        public DataTable layDSHSViPham()
        {
            return m_HocSinViPhamData.layDSHSViPham();
        }
        public DataTable layDSHSViPham(string maLop)
        {
            return m_HocSinViPhamData.layDSHSViPham(maLop);
        }
        public DataTable LayHocSinhViPham1(String[] dsvp,String malop)
        {
            return m_HocSinViPhamData.LayHocSinhViPham1(dsvp,malop);
        }
        public bool themHocSinhViPham(HocSinhViPhamInfo hs)
        {
            return m_HocSinViPhamData.themHSViPham(hs);
        }
        public bool xoaHocSinhViPham(string maKyLuat,string maHocSinh)
        {
            return m_HocSinViPhamData.xoaHocSinhViPham(maKyLuat,maHocSinh);
        }
        public bool updateHocSinhViPham(HocSinhViPhamInfo hs)
        {
            return m_HocSinViPhamData.updateHocSinhViPham(hs);
        }
    }
}
